package com.dmooo.yxmmerchant.view.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;
import com.dmooo.yxmmerchant.domain.BannerListBean;

import java.io.File;
import java.util.List;

public class BannerContract {
    public interface BannerView extends BaseView{
        void shwoBannerList(List<BannerListBean.BannerItem> bannerItems);
        void delBannerSuccess(int position);
        void addBannerSuccess();
        void editBannerSuccess();
    }
    public interface BannerMdl{
        void getBannerList(String merchant_id, HttpOnNextListener listener);
        void delBanner(String token,String id,HttpOnNextListener listener);
        void addBanner(String token, File file,String title,String type,String type_value,String href,String sort,String is_show,HttpOnNextListener listener);
        void editBanner(String token, String id,File file,String title,String type,String type_value,String href,String sort,String is_show,HttpOnNextListener listener);
    }
    public interface BannerPtr{
        void getBannerList(String merchant_id);
        void delBanner(String token,String id,int position);
        void addBanner(String token, File file,String title,String type,String type_value,String href,String sort,String is_show);
        void editBanner(String token, String id,File file,String title,String type,String type_value,String href,String sort,String is_show);
    }
}
